<template>
  <div>
    <div v-if="token">我的</div>
    <div v-else @click="$router.push('/login')">
      <van-button type="primary">未登录</van-button>
    </div>
  </div>
</template>


<script>
export default {
  data() {
    return {
      token: localStorage.getItem('token')
    }
  }
}
</script>